<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Promise封装 | 13 - Promise.reject封装</title>
	<script src="./promise.js"></script>
</head>
<body>
	<script>
		const p = Promise.reject('ok')
		const p2 = Promise.reject(new Promise((resolve,reject)=>{
			resolve('Success')
		}))
		const p3 = Promise.reject(Promise.reject('On Yeah'))
		console.log(p3);
	</script>
</body>
</html>